package com.hqyj.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description mybatisplus 分页配置
 * @Autor 伍军
 * @Date 2022/9/26 9:57
 * @Version 1.0
 **/
@Configuration
public class MyBaitsPlusPageConfig {

    @Bean
    public PaginationInterceptor getPage(){
        return  new PaginationInterceptor();
    }
}
